package pers.exercise.DecoratorPattern.impl;

import pers.exercise.DecoratorPattern.NodeDecorator;
import pers.exercise.DecoratorPattern.TextNode;

public class BoldDecorator extends NodeDecorator {


    public BoldDecorator(TextNode target) {
        super(target);
    }
    
    
    @Override
    public String getText() {

        return "<b>"+target.getText()+"</b>";
    }
}
